{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do\..\output\logfiles\Table_3_tariffs.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 May 2025, 15:43:37
{txt}
{com}. 
. ********************************************************************************
. ********************************************************************************        
. use ..\temp\trade_data_h6_covars_h1.dta, clear
{txt}
{com}. 
. **Globals 
. global tariff "tf_best_adv"
{txt}
{com}. global hhi "B1"
{txt}
{com}. global ntm "ntm_EF"
{txt}
{com}. global evasion "gap_evasion_imp_customs"
{txt}
{com}. replace $evasion = . if exp_reported==0 
{txt}(0 real changes made)

{com}. 
. ***Interactions
. 
. gen tariffXcom = $tariff* commodity_exports
{txt}(218,885 missing values generated)

{com}. gen ntmXcom = $ntm *commodity_exports
{txt}(1,977,344 missing values generated)

{com}. 
. gen tariffXfcom = $tariff *fuel_exports
{txt}(218,885 missing values generated)

{com}. gen ntmXfcom = $ntm *fuel_exports
{txt}(1,977,344 missing values generated)

{com}. 
. gen tariffXfocom = $tariff *food_exports
{txt}(218,885 missing values generated)

{com}. gen ntmXfocom = $ntm *food_exports
{txt}(1,977,344 missing values generated)

{com}. 
. gen tariffXocom = $tariff *ores_metal_exports 
{txt}(218,885 missing values generated)

{com}. gen ntmXocom = $ntm *ores_metal_exports
{txt}(1,977,344 missing values generated)

{com}. 
. gen tariffXcomp = $tariff *compriceindexfixw
{txt}(143,992 missing values generated)

{com}. gen ntmXcomp = $ntm *compriceindexfixw
{txt}(1,977,344 missing values generated)

{com}. 
. gen tariffXcce = $tariff * cce
{txt}(224,626 missing values generated)

{com}. gen ntmXcce = $ntm * cce
{txt}(1,977,344 missing values generated)

{com}. 
. gen hhiXcom = $hhi * commodity_exports
{txt}(218,008 missing values generated)

{com}. gen hhiXfcom = $hhi  *fuel_exports
{txt}(218,008 missing values generated)

{com}. gen hhiXfocom = $hhi  *food_exports
{txt}(218,008 missing values generated)

{com}. gen hhiXocom = $hhi *ores_metal_exports
{txt}(218,008 missing values generated)

{com}. gen hhiXcomp = $hhi  *compriceindexfixw
{txt}(145,537 missing values generated)

{com}. 
. **Labels
. lab var $tariff "Tariff [0,1]"
{txt}
{com}. lab var $ntm "NTM (=1)"
{txt}
{com}. lab var $evasion "Evasion [-1,1]"
{txt}
{com}. lab var $hhi "HHI"
{txt}
{com}. 
. lab var tariffXcom "Commodity export share x Tariff"
{txt}
{com}. lab var tariffXocom "Ores and metals export share  x Tariff"
{txt}
{com}. lab var tariffXfocom "Food export share x Tariff "
{txt}
{com}. lab var tariffXfcom "Fuel export share x Tariff"
{txt}
{com}. lab var tariffXcomp "Export commodity price index x Tariff"
{txt}
{com}. lab var tariffXcce "Corruption X Tariff"
{txt}
{com}. 
. lab var hhiXcom "Commodity export share x HHI"
{txt}
{com}. lab var hhiXfcom "Fuel export share x HHI"
{txt}
{com}. lab var hhiXfocom "Food export share x HHI "
{txt}
{com}. lab var hhiXocom "Ores and metals export share x  HHI"
{txt}
{com}. lab var hhiXcomp "Export commodity price index x  HHI"
{txt}
{com}. 
. lab var ntmXcom "Commodity export share x NTM"
{txt}
{com}. lab var ntmXfcom "Fuel export share x NTM"
{txt}
{com}. lab var ntmXocom "Ores and metals export share x NTM"
{txt}
{com}. lab var ntmXfocom "Food export share x NTM"
{txt}
{com}. 
. bys cy: egen v_total = total(v)
{txt}
{com}. gen vshare = v/v_total
{txt}(122,421 missing values generated)

{com}. 
. lab var commodity_exports "Commodity export share [0,1]"
{txt}
{com}. lab var ores_metal_exports "Ores and metals export share [0,1]"
{txt}
{com}. lab var food_exports "Food export share [0,1]"
{txt}
{com}. lab var fuel_exports "Fuel export share [0,1]"
{txt}
{com}. lab var compriceindexfixw "Export commodity price index (1=2012)"
{txt}
{com}. 
. lab var cce "Control of corruption"
{txt}
{com}. lab var rqe "Regulatory quality"
{txt}
{com}. lab var loggdppc "Log GDPppp per capita"
{txt}
{com}. label var gini_i "Gini coefficient (interpolated) [0, 1]"
{txt}
{com}. 
. ********************************************************************************
. *Counting one observation per year-country
. bys y c: gen x=_n
{txt}
{com}. 
. ********************************************************************************
. 
. *Checking market size and HH
. gen B1_ln = ln(B1)
{txt}(122,421 missing values generated)

{com}. gen v_ln = ln(v)
{txt}(122,421 missing values generated)

{com}. 
. reghdfe v_ln B1_ln if $evasion != ., absorb(ch6) vce(robust)
{res}{txt}(dropped 14188 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,825,497
{txt}Absorbing 1 HDFE group{col 51}F({res}   1{txt},{res}1652145{txt}){col 67}= {res}   9744.80
{txt}{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.8349
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8176
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0083
{txt}{col 51}Root MSE{col 67}= {res}    1.2370

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}        v_ln{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}B1_ln {c |}{col 14}{res}{space 2}-.2434521{col 26}{space 2} .0024662{col 37}{space 1}  -98.72{col 46}{space 3}0.000{col 54}{space 4}-.2482858{col 67}{space 3}-.2386185
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 14.01977{col 26}{space 2} .0192509{col 37}{space 1}  728.27{col 46}{space 3}0.000{col 54}{space 4} 13.98204{col 67}{space 3}  14.0575
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   173351{col 27}{space 1}        0{col 39}{result}{space 1}   173351{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{txt}
{com}. sum $tariff, d

                        {txt}Tariff [0,1]
{hline 61}
      Percentiles      Smallest
 1%    {res} .0200323              0
{txt} 5%    {res} .0288787              0
{txt}10%    {res} .0318947              0       {txt}Obs         {res}  2,213,485
{txt}25%    {res} .0401154              0       {txt}Sum of wgt. {res}  2,213,485

{txt}50%    {res} .0674185                      {txt}Mean          {res} .0775439
                        {txt}Largest       Std. dev.     {res} .0462361
{txt}75%    {res} .1055745       .8781416
{txt}90%    {res} .1369988       .8784115       {txt}Variance      {res} .0021378
{txt}95%    {res} .1544308       .9025508       {txt}Skewness      {res} 2.063786
{txt}99%    {res}  .198847        .918112       {txt}Kurtosis      {res} 15.22498
{txt}
{com}. sum $ntm, d

                          {txt}NTM (=1)
{hline 61}
      Percentiles      Smallest
 1%    {res}        0              0
{txt} 5%    {res}        0              0
{txt}10%    {res}        0              0       {txt}Obs         {res}    380,133
{txt}25%    {res}        0              0       {txt}Sum of wgt. {res}    380,133

{txt}50%    {res}        0                      {txt}Mean          {res} .4393199
                        {txt}Largest       Std. dev.     {res} .4963049
{txt}75%    {res}        1              1
{txt}90%    {res}        1              1       {txt}Variance      {res} .2463186
{txt}95%    {res}        1              1       {txt}Skewness      {res} .2445277
{txt}99%    {res}        1              1       {txt}Kurtosis      {res} 1.059794
{txt}
{com}. 
. *Table for main text
. loc run = 1
{txt}
{com}. if `run' == 1{c -(}
.     
. ///Want to keep across product variation so don't use ch6 fixed effects
> reghdfe B1  $tariff tariffXcom if $evasion != . , absorb(cy yh6) cluster(cy ch6)
{res}{txt}(dropped 2585 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,813,940
{txt}Absorbing 2 HDFE groups{col 51}F({res}   2{txt},{res}    567{txt}){col 67}= {res}      7.31
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0007
{txt}{col 51}R-squared{col 67}= {res}    0.4733
{txt}{col 51}Adj R-squared{col 67}= {res}    0.4431
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       568{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}ch6{txt}) {col 30}= {res}   187,189{txt}{col 51}Root MSE{col 67}= {res} 2258.6431

{txt}{ralign 78:(Std. err. adjusted for {res:568} clusters in {res:cy ch6})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}          B1{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 1}tf_best_adv {c |}{col 14}{res}{space 2} 3807.309{col 26}{space 2} 1031.904{col 37}{space 1}    3.69{col 46}{space 3}0.000{col 54}{space 4} 1780.487{col 67}{space 3}  5834.13
{txt}{space 2}tariffXcom {c |}{col 14}{res}{space 2}-1359.556{col 26}{space 2} 1482.204{col 37}{space 1}   -0.92{col 46}{space 3}0.359{col 54}{space 4}-4270.837{col 67}{space 3} 1551.724
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 3589.511{col 26}{space 2} 81.10693{col 37}{space 1}   44.26{col 46}{space 3}0.000{col 54}{space 4} 3430.204{col 67}{space 3} 3748.817
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}          cy{col 14}{c |}{space 1}      568{col 27}{space 1}      568{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    97926{col 27}{space 1}        1{col 39}{result}{space 1}    97925{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{com}. sum  B1  if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}B1 {c |}{res}  1,813,940     3890.48    3026.554   3.956714      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\table3_final.tex, replace tex(frag) dec(0) rdec(2) label  nocons addtext( "Product-year fixed effects", "Yes", "Country-year fixed effects", "Yes") sortvar(commodity_exports fuel_exports ores_metal_exports food_exports compriceindexfixw  $tariff tariffXcomp tariffXcom   tariffXfcom tariffXocom  tariffXfocom   $ntm ntmXcom ntmXfcom ntmXocom  ntmXfocom  )  addstat(Dependent variable mean, `m')
{txt}{stata `"shellout using `"..\output\table3_final.tex"'"':..\output\table3_final.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\table3_final.txt", label"':seeout}
{com}. 
. reghdfe B1  $tariff tariffXfcom tariffXocom  tariffXfocom if $evasion != ., absorb(cy yh6) cluster(cy ch6)
{res}{txt}(dropped 2585 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,813,940
{txt}Absorbing 2 HDFE groups{col 51}F({res}   4{txt},{res}    567{txt}){col 67}= {res}     24.19
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4751
{txt}{col 51}Adj R-squared{col 67}= {res}    0.4450
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       568{txt}{col 51}Within R-sq.{col 67}= {res}    0.0037
{txt}{col 1}Number of clusters ({res}ch6{txt}) {col 30}= {res}   187,189{txt}{col 51}Root MSE{col 67}= {res} 2254.7136

{txt}{ralign 78:(Std. err. adjusted for {res:568} clusters in {res:cy ch6})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}          B1{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 1}tf_best_adv {c |}{col 14}{res}{space 2} 1848.384{col 26}{space 2} 1075.283{col 37}{space 1}    1.72{col 46}{space 3}0.086{col 54}{space 4}-263.6406{col 67}{space 3} 3960.408
{txt}{space 1}tariffXfcom {c |}{col 14}{res}{space 2} 10285.99{col 26}{space 2} 2067.706{col 37}{space 1}    4.97{col 46}{space 3}0.000{col 54}{space 4} 6224.688{col 67}{space 3} 14347.28
{txt}{space 1}tariffXocom {c |}{col 14}{res}{space 2} 1443.045{col 26}{space 2} 1820.627{col 37}{space 1}    0.79{col 46}{space 3}0.428{col 54}{space 4}-2132.952{col 67}{space 3} 5019.042
{txt}tariffXfocom {c |}{col 14}{res}{space 2}-9600.338{col 26}{space 2} 1588.065{col 37}{space 1}   -6.05{col 46}{space 3}0.000{col 54}{space 4}-12719.55{col 67}{space 3}-6481.129
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 3714.871{col 26}{space 2} 80.51845{col 37}{space 1}   46.14{col 46}{space 3}0.000{col 54}{space 4}  3556.72{col 67}{space 3} 3873.022
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}          cy{col 14}{c |}{space 1}      568{col 27}{space 1}      568{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    97926{col 27}{space 1}        1{col 39}{result}{space 1}    97925{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{com}. sum  B1  if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}B1 {c |}{res}  1,813,940     3890.48    3026.554   3.956714      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\table3_final.tex, append  tex(frag) dec(0) rdec(2) label  nocons addtext("Product-year fixed effects", "Yes", "Country-year fixed effects", "Yes") sortvar(commodity_exports fuel_exports ores_metal_exports food_exports compriceindexfixw  $tariff tariffXcomp tariffXcom   tariffXfcom tariffXocom  tariffXfocom   $ntm ntmXcom ntmXfcom ntmXocom  ntmXfocom  )   addstat(Dependent variable mean, `m')
{txt}{stata `"shellout using `"..\output\table3_final.tex"'"':..\output\table3_final.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\table3_final.txt", label"':seeout}
{com}. 
. test _b[tariffXfcom] = _b[tariffXocom]

{p 0 7}{space 1}{text:( 1)}{space 1} {res}tariffXfcom - tariffXocom = 0{p_end}

{txt}       F(  1,   567) ={res}   17.34
{txt}{col 13}Prob > F ={res}    0.0000
{com}. test _b[tariffXfcom] = _b[tariffXfocom]

{p 0 7}{space 1}{text:( 1)}{space 1} {res}tariffXfcom - tariffXfocom = 0{p_end}

{txt}       F(  1,   567) ={res}   81.31
{txt}{col 13}Prob > F ={res}    0.0000
{com}. 
. reghdfe $evasion  $tariff tariffXfcom tariffXocom  tariffXfocom , absorb(cy yh6) cluster(cy ch6)
{res}{txt}(dropped 2585 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,813,940
{txt}Absorbing 2 HDFE groups{col 51}F({res}   4{txt},{res}    567{txt}){col 67}= {res}     24.16
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.1883
{txt}{col 51}Adj R-squared{col 67}= {res}    0.1417
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       568{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}ch6{txt}) {col 30}= {res}   187,189{txt}{col 51}Root MSE{col 67}= {res}    0.4709

{txt}{ralign 78:(Std. err. adjusted for {res:568} clusters in {res:cy ch6})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}gap_evasio~s{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 1}tf_best_adv {c |}{col 14}{res}{space 2}-.4928402{col 26}{space 2} .1266935{col 37}{space 1}   -3.89{col 46}{space 3}0.000{col 54}{space 4}-.7416862{col 67}{space 3}-.2439942
{txt}{space 1}tariffXfcom {c |}{col 14}{res}{space 2} .3613663{col 26}{space 2}  .177147{col 37}{space 1}    2.04{col 46}{space 3}0.042{col 54}{space 4} .0134218{col 67}{space 3} .7093109
{txt}{space 1}tariffXocom {c |}{col 14}{res}{space 2}-.2632483{col 26}{space 2} .1796008{col 37}{space 1}   -1.47{col 46}{space 3}0.143{col 54}{space 4}-.6160125{col 67}{space 3} .0895159
{txt}tariffXfocom {c |}{col 14}{res}{space 2}-1.013392{col 26}{space 2} .1637683{col 37}{space 1}   -6.19{col 46}{space 3}0.000{col 54}{space 4}-1.335059{col 67}{space 3}-.6917255
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .0865331{col 26}{space 2} .0094834{col 37}{space 1}    9.12{col 46}{space 3}0.000{col 54}{space 4} .0679062{col 67}{space 3} .1051599
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}          cy{col 14}{c |}{space 1}      568{col 27}{space 1}      568{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    97926{col 27}{space 1}        1{col 39}{result}{space 1}    97925{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{com}. sum  $evasion  if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
gap_evasio~s {c |}{res}  1,813,940    .0442103    .5082822         -1          1
{com}. loc m = r(mean)
. lincom _b[tf_best_adv] + _b[tariffXfcom] //For footnote

{p 0 7}{space 1}{text:( 1)}{space 1} {res}tf_best_adv + tariffXfcom = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}gap_evasio~s{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.1314739{col 26}{space 2} .1826008{col 37}{space 1}   -0.72{col 46}{space 3}0.472{col 54}{space 4}-.4901306{col 67}{space 3} .2271828
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{com}. outreg2 using ..\output\table3_final.tex, append  tex(frag) dec(2)  label  nocons  addtext("Product-year fixed effects", "Yes", "Country-year fixed effects", "Yes") sortvar(commodity_exports fuel_exports ores_metal_exports food_exports compriceindexfixw  $tariff tariffXcomp tariffXcom   tariffXfcom tariffXocom  tariffXfocom   $ntm ntmXcom ntmXfcom ntmXocom  ntmXfocom  )  addstat(Dependent variable mean, `m')
{txt}{stata `"shellout using `"..\output\table3_final.tex"'"':..\output\table3_final.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\table3_final.txt", label"':seeout}
{com}. 
. 
. test _b[tariffXfcom] = _b[tariffXocom]

{p 0 7}{space 1}{text:( 1)}{space 1} {res}tariffXfcom - tariffXocom = 0{p_end}

{txt}       F(  1,   567) ={res}   11.68
{txt}{col 13}Prob > F ={res}    0.0007
{com}. test _b[tariffXfcom] = _b[tariffXfocom]

{p 0 7}{space 1}{text:( 1)}{space 1} {res}tariffXfcom - tariffXfocom = 0{p_end}

{txt}       F(  1,   567) ={res}   65.57
{txt}{col 13}Prob > F ={res}    0.0000
{com}. 
. {c )-}
{txt}
{com}. 
. 
. ********************************************************************************
. *Table S3 
. loc run =0
{txt}
{com}. if `run' == 1{c -(}
.         
. reghdfe cce commodity_exports loggdppc rqe gini_i if x==1,  absorb(c y) cluster(cy)
. sum  cce if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\table3_appendix.tex, replace  tex(frag)  label  nocons dec(2) addtext( "Country fixed effects", "Yes", "Year fixed effects", "Yes")   sortvar(commodity_exports fuel_exports ores_metal_exports food_exports compriceindexfixw  $tariff tariffXcomp tariffXcom   tariffXfcom tariffXocom  tariffXfocom   $ntm ntmXcom ntmXfcom ntmXocom  ntmXfocom loggdppc gini_i cce rqe )  addstat(Dependent variable mean, `m')
. 
. reghdfe cce fuel_exports ores_metal_exports food_exports loggdppc rqe gini_i if x==1,  absorb(c y) cluster(cy)
. sum  cce if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\table3_appendix.tex, append  tex(frag)  label  nocons dec(2)  addtext( "Country fixed effects", "Yes", "Year fixed effects", "Yes") sortvar(commodity_exports fuel_exports ores_metal_exports food_exports compriceindexfixw  $tariff tariffXcomp tariffXcom   tariffXfcom tariffXocom  tariffXfocom   $ntm ntmXcom ntmXfcom ntmXocom  ntmXfocom loggdppc gini_i cce rqe )  addstat(Dependent variable mean, `m')
. 
. reghdfe cce compriceindexfixw loggdppc rqe gini_i if x==1,  absorb(c y) cluster(cy)
. sum  cce if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\table3_appendix.tex, append  label tex(frag)  nocons dec(2) addtext( "Country fixed effects", "Yes", "Year fixed effects", "Yes")  sortvar(compriceindexfixw commodity_exports fuel_exports ores_metal_exports food_exports  $tariff tariffXcomp tariffXcom   tariffXfcom tariffXocom  tariffXfocom   $ntm ntmXcom ntmXfcom ntmXocom  ntmXfocom )  addstat(Dependent variable mean, `m')
. 
. {c )-}
{txt}
{com}. 
. 
. ********************************************************************************
. *Table S4
. loc run =0
{txt}
{com}. if `run' == 1{c -(}
. reghdfe $ntm commodity_exports  if $evasion != ., absorb(h6) cluster(cy ch6)
. sum  $ntm if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\table3_appendix2.tex, replace  tex(frag) dec(2)  label  nocons  addtext("Product-year fixed effects", "No", "Country-year fixed effects", "No") sortvar(commodity_exports fuel_exports ores_metal_exports food_exports compriceindexfixw  $tariff tariffXcomp tariffXcom   tariffXfcom tariffXocom  tariffXfocom   $ntm ntmXcom ntmXfcom ntmXocom  ntmXfocom  )  addstat(Dependent variable mean, `m')
. 
. reghdfe B1 $ntm ntmXcom  if $evasion != ., absorb(cy h6) cluster(cy ch6)
. sum  B1 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\table3_appendix2.tex, append  tex(frag) dec(2)  label  nocons  addtext("Product-year fixed effects", "No", "Country-year fixed effects", "No") sortvar(commodity_exports fuel_exports ores_metal_exports food_exports compriceindexfixw  $tariff tariffXcomp tariffXcom   tariffXfcom tariffXocom  tariffXfocom   $ntm ntmXcom ntmXfcom ntmXocom  ntmXfocom  )  addstat(Dependent variable mean, `m')
. 
. reghdfe B1 $ntm ntmXfcom ntmXocom ntmXfocom if $evasion != ., absorb(cy h6) cluster(cy ch6)
. sum  B1  if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\table3_appendix2.tex, append  tex(frag) dec(0) rdec(2) label  nocons  addtext("Product-year fixed effects", "No", "Country-year fixed effects", "Yes")  sortvar(commodity_exports fuel_exports ores_metal_exports food_exports compriceindexfixw  $tariff tariffXcomp tariffXcom   tariffXfcom tariffXocom  tariffXfocom   $ntm ntmXcom ntmXfcom ntmXocom  ntmXfocom  )  addstat(Dependent variable mean, `m')
. 
. reghdfe $evasion $ntm ntmXfcom ntmXocom  ntmXfocom ,  absorb(cy h6) cluster(cy ch6)
. sum  $evasion  if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\table3_appendix2.tex, append  tex(frag) dec(2)  label  nocons  addtext("Product-year fixed effects", "No", "Country-year fixed effects", "Yes") sortvar(commodity_exports fuel_exports ores_metal_exports food_exports compriceindexfixw  $tariff tariffXcomp tariffXcom   tariffXfcom tariffXocom  tariffXfocom   $ntm ntmXcom ntmXfcom ntmXocom  ntmXfocom  )  addstat(Dependent variable mean, `m')
. 
. {c )-}
{txt}
{com}. 
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do\..\output\logfiles\Table_3_tariffs.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 May 2025, 15:44:27
{txt}{.-}
{smcl}
{txt}{sf}{ul off}